import request from '@/common/request.js'

const project_api={}

// 添加项目
project_api.addProject = data => request.globalRequest({
	methods: 'POST',
	url: '/api/project/add',   
	data: data, 
}) 

// 获取项目列表
project_api.getList = data => request.globalRequest({
	methods: 'POST',
	url: '/api/project/index',   
	data: data, 
}) 

// 获取项目基本信息
project_api.getProjectInfo = data => request.globalRequest({
	methods: 'GET',
	url: '/api/project/edit',   
	data: data, 
}) 

// 删除项目
project_api.delProject = data => request.globalRequest({
	methods: 'POST',
	url: '/api/project/delete',   
	data: data, 
}) 

// 更新项目状态 
project_api.updateProjectStatus = data => request.globalRequest({
	methods: 'POST',
	url: '/api/project/alterstatus',   
	data: data, 
}) 

// 获取任务详情 
project_api.getTaskInfo = data => request.globalRequest({
	methods: 'POST',
	url: '/api/task/info',   
	data: data, 
}) 

// 编辑项目 
project_api.editProject = data => request.globalRequest({
	methods: 'POST',
	url: '/api/project/update',   
	data: data, 
}) 

  
project_api.Projectchangeys = data => request.globalRequest({
	methods: 'POST',
	url: '/project/changeys',   
	data: data, 
}) 

project_api.Projectchangeyj = data => request.globalRequest({
	methods: 'POST',
	url: '/project/changeyj',   
	data: data, 
}) 





export default project_api